package com.xframe.common.core.service.login;

import com.xframe.domain.role.IUserCredentials;

/**
 * 功能描述: 对重复登录的处理策略
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-5-31
 */
public class LastRepeatLoginstrategy implements IRepeatLoginstrategy{
    @Override
    public void proc(ITokenService tokenService, IUserCredentials userCredentials) {
        // 删除之前登录的用户凭证
        tokenService.delUserCredentials(userCredentials);
    }
}
